package com.fpmsa.officeweb.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 会员风采
 * </p>
 *
 * @author huangyuehong123
 * @since 2018-07-16
 */
@TableName("member_mien")
public class MemberMien extends Model<MemberMien> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 会员名称
     */
    private String name;
    /**
     * 会员头像
     */
    private String avatar;
    /**
     * 排序值
     */
    private Integer orderval;
    /**
     * 会员风采详情id（会员风采新闻的主键id）
     */
    @TableField("mm_newsid")
    private Integer mmNewsid;
    /**
     * 创建时间
     */
    @TableField("create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 是否删除（0：否，1 ： 是）
     */
    @TableField("is_del")
    private Integer isDel;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getOrderval() {
        return orderval;
    }

    public void setOrderval(Integer orderval) {
        this.orderval = orderval;
    }

    public Integer getMmNewsid() {
        return mmNewsid;
    }

    public void setMmNewsid(Integer mmNewsid) {
        this.mmNewsid = mmNewsid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "MemberMien{" +
        "id=" + id +
        ", name=" + name +
        ", avatar=" + avatar +
        ", orderval=" + orderval +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", isDel=" + isDel +
        "}";
    }
}
